package cn.edu.scau.cmi.dengzhengyu.comprehensiveExperiment;

import cn.edu.scau.cmi.dengzhengyu.factoryMethodModel.BeefMeatFactory;
import cn.edu.scau.cmi.dengzhengyu.factoryMethodModel.ChickenMeatFactory;
import cn.edu.scau.cmi.dengzhengyu.factoryMethodModel.PorkMeatFactory;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.TextArea;

public class FactoryUIController {

    @FXML
    private Button btn_F_pk;

    @FXML
    private Button btn_F_ck;

    @FXML
    private Button btn_F_bf;

    @FXML
    private TextArea text_2;

    @FXML
    void eventBtn_F_Chicken() {
    	text_2.appendText(new ChickenMeatFactory().getMeat().taste()+"\n");
    }

    @FXML
    void eventBtn_F_Beef() {
    	text_2.appendText(new BeefMeatFactory().getMeat().taste()+"\n");
    }

    @FXML
    void eventBtn_F_Pork() {
    	text_2.appendText(new PorkMeatFactory().getMeat().taste()+"\n");
    }
    
}